package com.tianyi.sfzy1.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 课程购买记录表
 * @TableName coursepurchaserecord
 */
@Data
public class Coursepurchaserecord implements Serializable {
    /**
     * 购买编号
     */
    private int purchaseId;
    /**
     * 课程编号 -- 应该引用Course(course_id)
     */
//    private Integer courseId;
    /**
     * 会员编号 -- 应该引用Member(member_id)
     */
//    private Integer memberId;
    /**
     * 购买价格
     */
    private Double purchasePrice;
    /**
     * 购买时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date purchaseTime;
    /**
     * 状态
     */
    private String status;
    private Member member;
    private Course course;


    private static final long serialVersionUID = 1L;
}